package com.shensi.adminCollect.mapper.fleet;

import com.shensi.adminCollect.domain.fleet.FleetCardSub;
import com.shensi.adminCollect.domain.fleet.form.FleetCardSubQueryForm;
import com.shensi.adminCollect.domain.fleet.vo.FleetCardSubVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FleetCardSubMapper {
    /**
     * 查询车队卡子卡列表
     *
     * @param fleetCardSubQueryForm 车队卡子卡
     * @return 车队卡子卡集合
     */
    List<FleetCardSubVo> selectFleetCardSubList(FleetCardSubQueryForm fleetCardSubQueryForm);

    List<FleetCardSub> selectByFleetCardId(Long fleetCardId);

    List<FleetCardSub> selectAllByFleetCardId(Long fleetCardId);

    /**
     * 修改车队卡子卡
     *
     * @param fleetCardSub 车队卡子卡
     * @return 结果
     */
    int updateFleetCardSub(FleetCardSub fleetCardSub);

    /**
     * 查询车队卡子卡
     *
     * @param id 车队卡子卡ID
     * @return 车队卡子卡
     */
    public FleetCardSub selectFleetCardSubById(Long id);

    List<FleetCardSub> query(FleetCardSub fleetCardSubQuery);

    List<FleetCardSub> selectFleetCardSubByIdAndSecondary(Long id);

    // 新增车队卡子卡
    int insertFleetCardSub(FleetCardSub fleetCardSub);

    // 手机号查询车队卡子卡
    List<FleetCardSub> selectFleetCardSubByPhone(String phone);
}
